package com.wxzhou.wangzhuan.entity;

/**
 * 不同支付渠道用户绑定记录
 */
public class UserBindWithdrawRelation {

    private Long userid;

    //提现渠道
    private Integer withdrawChannel;

    //到账方式：PaymentType
    private Integer paymentType;

    private String simpleName;

    private String detailsInfo;

    public UserBindWithdrawRelation() {
    }


    private UserBindWithdrawRelation(Long userid, Integer withdrawChannel, Integer paymentType, String simpleName, String detailsInfo) {
        this.userid = userid;
        this.withdrawChannel = withdrawChannel;
        this.paymentType = paymentType;
        this.simpleName = simpleName;
        this.detailsInfo = detailsInfo;
    }

    /**
     * 构造三方实名对象
     *
     * @param userid
     * @param paymentType
     * @param simpleName
     * @param detailsInfo
     * @return
     */
    public static UserBindWithdrawRelation createByThirdPart(Long userid, Integer paymentType, String simpleName, String detailsInfo) {
        return new UserBindWithdrawRelation(userid, WithdrawalChannel.THIRD_PARTY.getCode(), paymentType, simpleName, detailsInfo);
    }

    public Long getUserid() {
        return userid;
    }

    public void setUserid(Long userid) {
        this.userid = userid;
    }

    public Integer getWithdrawChannel() {
        return withdrawChannel;
    }

    public void setWithdrawChannel(Integer withdrawChannel) {
        this.withdrawChannel = withdrawChannel;
    }

    public Integer getPaymentType() {
        return paymentType;
    }

    public void setPaymentType(Integer paymentType) {
        this.paymentType = paymentType;
    }

    public String getSimpleName() {
        return simpleName;
    }

    public void setSimpleName(String simpleName) {
        this.simpleName = simpleName;
    }

    public String getDetailsInfo() {
        return detailsInfo;
    }

    public void setDetailsInfo(String detailsInfo) {
        this.detailsInfo = detailsInfo;
    }
}
